#include<bits/stdc++.h>
using namespace std;
#define all(x) (x).begin(),(x).end()
#define rall(x) (x).rbegin(),(x).rend()
const int N=2e5+10;
#define INF 0x3f3f3f3f;
typedef long long int ll;
#define close(); std::ios::sync_with_stdio(false);cin.tie(0),cout.tie(0);
//----------------------------------------------------------------------------//
ll xb,xc,yc;
#include<bits/stdc++.h>
using namespace std;
#define all(x) (x).begin(),(x).end()
#define rall(x) (x).rbegin(),(x).rend()
const int N=2e5+10;
#define INF 0x3f3f3f3f;
typedef long long int ll;
#define close(); std::ios::sync_with_stdio(false);cin.tie(0),cout.tie(0);
//----------------------------------------------------------------------------//

void solve()
{
	cin>>xb>>xc>>yc;

	double mx=(xb*yc)/2.0;

	double t=(yc*xc)/2.0;
	double t2=(yc*(xb-xc))/2.0;
	if(t==mx||t2==mx) cout<<"YES"<<'\n';
	else if(t<mx)//在右
	{

	}
	else if(t>mx)//在左
	{

	}

	
}

int main()
{
	close();
	int T; cin>>T;
	while (T--) solve();
	return 0;
}